from django.db import models

from .id_card import IdCard


class People(models.Model):
    name = models.CharField(max_length=255, default='')
    age = models.IntegerField(default=10)
    created = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)
    id_card = models.OneToOneField(IdCard, on_delete=models.CASCADE)
